package com.weilan.ark3.entity;


import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 设备控制指令对象 tb_control_rtu
 *
 */
@Data
@Api("设备控制指令对象")
public class ControlRtu
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 从站id */
    @ApiModelProperty(name = "从站id")
    @TableField("slaveId")
    private Integer slaveId;

    /** 设备id */
    @ApiModelProperty(name = "设备id")
    @TableField("device_id")
    private Integer deviceId;

    /** 模块名称 */
    @ApiModelProperty(name = "模块名称")
    @TableField("module_name")
    private String moduleName;

    /** 指令名称 */
    @ApiModelProperty(name = "指令名称")
    @TableField("instruct_name")
    private String instructName;


    /** 起始位置 */
    @ApiModelProperty(name = "起始位置")
    @TableField("address")
    private Integer address;

    /** 读取长度 */
    @ApiModelProperty(name = "读取长度")
    @TableField("len")
    private Integer len;

    /** 读写(1读0写) */
    @ApiModelProperty(name = "读写(1读0写) ")
    @TableField("is_read")
    private Integer isRead;

    /** 备注 */
    @ApiModelProperty(name = "备注")
    @TableField("remark")
    private String remark;

    /** com口名称 */
    @ApiModelProperty(name = "com口名称")
    @TableField("com_name")
    private String comName;


    /** 偏移量 */
    @ApiModelProperty(name = "偏移量")
    @TableField("offset")
    private Integer offset;

    /** 波特率 */
    @ApiModelProperty(name = "波特率")
    @TableField("baud_rate")
    private Integer baudRate;


    /** 报文级别 */
    @ApiModelProperty(name = "报文级别")
    @TableField("rank")
    private Integer rank;


    @ApiModelProperty(name = "起始地址")
    @TableField("start")
    private Integer start;

    @ApiModelProperty(name = "结束地址")
    @TableField("end")
    private Integer end;

    @ApiModelProperty(name = "存储(1存0不存)")
    @TableField("is_memory")
    private Integer isMemory;


}
